# 按位与：&
a = 20
b = 10
# print( a & b)
# 00010100
# 00001010
# 00000000 = 0
# 按位或运算符：|
# print(a | b)
# 00010100
# 00001010
# 00011110

# 左移动运算符: <<
# print(a << 3)
# 10100000

# 右移动运算符 >>

# print(a >> 3)
# 00000101

# 按位取反运算符 ~
# print(~ 3)   = -x-1
# 00000011
# 11111100
# 00000011===> 00000100=-4

# 按位异或运算符 ^
# 00010100
# 00001010
# 00011110

print(a ^ b)